import 'package:flutter/material.dart';

/// dialog的工具类
class DialogUtils {

  /// 显示警告的弹窗
  static showWarningDialog(BuildContext context) {
    return showDialog(
        context: context,
        builder: (context) {
          return const AlertDialog(
            title: Text("警告"),
            content: Text("确定要删除此内容吗？"),
            backgroundColor: Colors.white,
          );
        }
    );
  }

}